<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <style>
        div{
            width: 100%;
            height: 200px;
        }
        form{
            margin-top: 50px;
            text-align: center;
        }
    </style>
    <script src="../static/jquery/jquery.js"></script>
    <script>
        $(function () {
            $("#username").blur(function () {
                $.ajax()
            })
        })
    </script>

</head>
<body>
<div>
    <form method="post" action="/login">
        用户名：<input id="username" type="text" name="username"><span id="msg1"></span><br>
        密码：<input id="password" type="password" name="password"><span id="msg2"></span><br>
        <input type="submit" value="登录">
        <p th:unless="${#strings.isEmpty(msg)}" th:text="${msg}" style="color: red">返回信息</p>
    </form>
</div>
</body>
</html>